﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
// ReSharper disable InconsistentNaming

namespace ChanTai.WebApi.Data
{
    /// <summary>
    /// 提交核保
    /// </summary>
    public class AccSaveRequest:Request
    {
        /// <summary>
        /// 请求json参数
        /// </summary>
        public GroupSubmit args { get; set; }
        /*
        /// <summary>
        /// 添加数据验证
        /// </summary>
        /// <exception cref="Exception">验证失败异常</exception>
        public virtual void CheckArgs()
        {
            if (string.IsNullOrEmpty(args)) throw new Exception("请求参数不能为空");
            //TODO 扩展检查项
        }
        /// <summary>
        /// 获取参数
        /// </summary>
        /// <returns></returns>
        public GroupSubmit getargs()
        {
            CheckArgs();
            return JsonConvert.DeserializeObject<GroupSubmit>(args);
        }//*/
    }
}
